package slidingpenguins.utils.imagecache {

	public class ImageCacheEntry {
		private var _cachedImage:MutableCachedImage;
		private var _isUndeletable:Boolean;
		private var _isInPrefetchedAndNotAccessedState:Boolean;
		private var _prefetchedRequestTime:uint;
		private var _aliasesCount:uint;

		public function ImageCacheEntry(cachedImage:MutableCachedImage) {
			_cachedImage = cachedImage;
			_isUndeletable = false;
			_isInPrefetchedAndNotAccessedState = false;
			_prefetchedRequestTime = 0;
			_aliasesCount = 0;
		}
		
		public function get cachedImage():MutableCachedImage {
			return _cachedImage;
		}
		
		public function get isUndeletable():Boolean {
			return _isUndeletable;
		}
		
		public function set isUndeletable(isUndeletable:Boolean):void {
			_isUndeletable = isUndeletable;
		}
		
		public function get isInPrefetchedAndNotAccessedState():Boolean {
			return _isInPrefetchedAndNotAccessedState;
		}
		
		public function set isInPrefetchedAndNotAccessedState(isInPrefetchedAndNotAccessedState:Boolean):void {
			_isInPrefetchedAndNotAccessedState = isInPrefetchedAndNotAccessedState;
		}
		
		public function get prefetchedRequestTime():uint {
			return _prefetchedRequestTime;
		}
		
		public function set prefetchedRequestTime(prefetchedRequestTime:uint):void {
			_prefetchedRequestTime = prefetchedRequestTime;
		}
		
		public function get aliasesCount():uint {
			return _aliasesCount;
		}
		
		public function set aliasesCount(aliasesCount:uint):void {
			_aliasesCount = aliasesCount;
		}
	}
}
